/**
 * User: muxin4ever
 * Date: Oct, 31, 2012
 * Time: 21:25
 */

package calculation;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MatrixLibrary {
	/*
	 * String matrixName
	 * Matrix matrixContent
	 */
	private static Map<String, Matrix> matrixList = new HashMap<String, Matrix>();

	
	public MatrixLibrary() {
		
	}
	
	public Matrix getMatrix(String name){
		return matrixList.get(name);
		
	}
	
	public boolean existMatrix(String name){
		return matrixList.containsKey(name);
	}
	
	public static Set<String> getNameList(){
		return matrixList.keySet();
	}

	public Map<String, Matrix> getMatrixList() {
		return matrixList;
	}

	public void setMatrixList(Map<String, Matrix> matrixList) {
		this.matrixList = matrixList;
	}
	
	

}
